package java8_20;

/**
 * @author oldliu
 * @since 1.0
 */
public class OldDriver {
    String name;
    public OldDriver(String n){
        name=n;
    }
    public void drive(Car c){
        String str="sss";
        System.out.println(name+"开着小轿车"+c.chepai+"出去浪。。。");
    }
    public void drive(Bus b){
        String name=b.no;//车牌
        System.out.println(this.name+"开着"+b.no+"路公交，从公交三公司到龙岗保养场");
    }
    //driveCar
    //driveBus
    //driveTaxi
    public void drive(Taxi b){
        System.out.println(name+"开着"+b.serialNo+",乘客想去哪就去哪");
        System.out.println("到站打印车票，提醒乘客带好行李下车");
    }


}
